package com.xiaochong.bitong.api.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.xiaochong.bitong.api.service.SplashService;
import com.xiaochong.bitong.api.utils.ApiVersion;
import com.xiaochong.tir.common.data.po.Splash;
import com.xiaochong.tir.common.data.vo.ApiResultVo;

/**
 * @author qzw
 * 2018年9月7日 下午4:06:20
 * @description 
 **/
@RestController
@Api(value = "启动广告页")
@RequestMapping(value=ApiVersion.API_V1_PREFIX+"/splash")
public class SplashController {
	
	@Autowired
	private SplashService splashService;

	@ApiOperation(value = "APP splash启动页", notes = "返回code：000000-成功；000004-无数据；500000-查询失败；")
    @GetMapping("/getSplash")
	public ApiResultVo<Splash> getSplash(){
		ApiResultVo<Splash> sp = splashService.getSplash();
		return sp;
	}
}
